home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ntp / depredated / ntp.3.4 / patches / patch12.Z / patch12
Encoding:
Text File  |  1991-09-29  |  2.8 KB  |  98 lines

  1. System: ntp version 3.4
  2. Patch #: 12
  3. Priority: 
  4. From:
  5. Description:
  6.  
  7. Had my head on backwards with a reversed test in the clockhopper avoidance
  8. code.  Need to switch to the first selected clock when its stratum is lower
  9. than the current sys.peer.
  10.  
  11.  
  12. Repeat-By:
  13.  
  14. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your ntp source
  15.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  16.     If you don't have the patch program, apply the following by hand,
  17.     or get patch (version 2.0, latest patchlevel).
  18.  
  19.     After patching:
  20.         make
  21.         make install
  22.  
  23.     If patch indicates that patchlevel is the wrong version, you may need
  24.     to apply one or more previous patches, or the patch may already
  25.     have been applied.  See the patchlevel.h file to find out what has or
  26.     has not been applied.  In any event, don't continue with the patch.
  27.  
  28.     If you are missing previous patches they can be obtained from me:
  29.  
  30.     Louis A. Mamakos
  31.     louie@trantor.umd.edu
  32.  
  33.     You can also get the patches via anonymous FTP from
  34.     trantor.umd.edu.
  35.  
  36. Index: patchlevel.h
  37. Prereq: 11
  38. 1c1
  39. < #define PATCHLEVEL 11
  40. ---
  41. > #define PATCHLEVEL 12
  42.  
  43. Index: ntp_proto.c
  44. *** ntp_proto.c.old    Wed May  3 23:52:14 1989
  45. --- ntp_proto.c    Wed May  3 23:52:24 1989
  46. ***************
  47. *** 1,5 ****
  48.   #ifndef    lint
  49. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.10 $ $Date: 89/05/03 19:03:02 $";
  50.   #endif
  51.   
  52.   /*
  53. --- 1,5 ----
  54.   #ifndef    lint
  55. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.11 $ $Date: 89/05/03 23:51:30 $";
  56.   #endif
  57.   
  58.   /*
  59. ***************
  60. *** 11,16 ****
  61. --- 11,21 ----
  62.   
  63.   /*
  64.    * $Log:    ntp_proto.c,v $
  65. +  * Revision 3.4.1.11  89/05/03  23:51:30  louie
  66. +  * Had my head on backwards with a reversed test in the clockhopper avoidance
  67. +  * code.  Need to switch to the first selected clock when its stratum is lower
  68. +  * than the current sys.peer.
  69. +  * 
  70.    * Revision 3.4.1.10  89/05/03  19:03:02  louie
  71.    * Stupid typo - dereferenced unused variable in select_clock()
  72.    * 
  73. ***************
  74. *** 1041,1051 ****
  75.       /*
  76.        *  Check to see if current peer is on the list of candidate peers.  If
  77.        *  don't change sys.peer.  Note that if the first selected clock is
  78. !      *  at a higher stratum, don't even bother; we're going to want to
  79.        *  switch to it.
  80.        */
  81.       if (sys.peer != NULL && 
  82. !         (sys.peer->stratum > sel_lst[0].peer->stratum)) {
  83.           for (i = 0; i < candidates; i++) {
  84.               if (sys.peer == sel_lst[i].peer) {
  85.                   /*
  86. --- 1046,1056 ----
  87.       /*
  88.        *  Check to see if current peer is on the list of candidate peers.  If
  89.        *  don't change sys.peer.  Note that if the first selected clock is
  90. !      *  at a lower stratum, don't even bother; we're going to want to
  91.        *  switch to it.
  92.        */
  93.       if (sys.peer != NULL && 
  94. !         (sys.peer->stratum <= sel_lst[0].peer->stratum)) {
  95.           for (i = 0; i < candidates; i++) {
  96.               if (sys.peer == sel_lst[i].peer) {
  97.                   /*
  98.